<?php
/**
 * insert, update and delete controller
 * structure of array $variables:
 * array (
 * 'query' => 'query'
 * @author astolarski
 *
 */
class Core_Controller_Dataoperation implements Core_Controller_Mainable {
	
	/**
	 * data operation model handler
	 * @var object $data_operation
	 */
	public $data_operation;
	
	/**
	 * constructor()
	 */
	public function __construct(){
		$this->data_operation = new Core_Model_Dataoperations;
	}
	
	/**
	 * get a data operation result
	 * @see Core_Controller_Mainable::main()
	 */
	public function main(array $variables = null){
		return $this->data_operation->main($variables);
	}
	
}